//
//  PBBestCollectionViewCell.m
//  PBHomeDemo
//
//  Created by Playboy on 2018/3/13.
//  Copyright © 2018年 tmkj. All rights reserved.
//

#import "PBBestCollectionViewCell.h"

@interface PBBestCollectionViewCell ()
@property (strong, nonatomic) IBOutlet UIImageView *coverImageView;
@property (strong, nonatomic) IBOutlet UILabel *nameLabel;
@property (strong, nonatomic) IBOutlet UILabel *priceLabel;
@end

@implementation PBBestCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)refreshWithModel:(PBBestHomeModel *)model {
    [self.coverImageView sd_setImageWithURL:[NSURL URLWithString:model.cover] placeholderImage:nil];
    self.nameLabel.text = model.name;
    self.priceLabel.text = [NSString stringWithFormat:@"%@元/月",model.rent];
}

@end
